// TODO 写生产环境中独有的配置
let { merge } = require("merge");
let common = require("./webpack.common");
let { relativeUrl } = require("./path");

module.exports = merge(common, {
  output: {
    filename: "js/[name].bundle.min.js",
    path: relativeUrl("./dist"),
    clean: true,
  },
  mode: "production",

  devtool: "eval-cheap-module-source-map",

  performance: {
    maxEntrypointSize: 10000000,
    maxAssetSize: 30000000,
  },
});
